// 接口导入
import instance from '../utils/request'
// 导入工具函数
// import { getToken } from '../utils/token'

// 接口抽取
const editUserInfo = data => {
  return instance({
    url: '/v1_0/user/profile',
    method: 'patch',
    data // data:data
    // headers: { Authorization: `Bearer ${getToken().token}` }
  })
}
const uploaderPhoto = data => {
  return instance({
    url: '/v1_0/user/photo',
    method: 'patch',
    data // data:data
    // headers: { Authorization: `Bearer ${getToken().token}` }
  })
}
// 暴露出去
export { editUserInfo, uploaderPhoto }
